//
//  NSString+Regular.h
//  Coin
//
//  Created by yangy on 2018/6/26.
//  Copyright © 2018年 zzg. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Regular)

- (BOOL)bh_IsValidateByRegex:(NSString *)regex;
#pragma mark - 手机号
- (BOOL)bh_IsValidPhoneNumber;
#pragma mark - 精确验证手机号
- (BOOL)bh_isMobileNumberClassification;
#pragma mark - 邮箱的有效性验证
- (BOOL)bh_IsEmailAddress;
#pragma 正则匹配用户身份证号15或18位
- (BOOL)cm_CheckUserIdCard;
#pragma 正则匹配用户密码6-18位数字和字母组合
- (BOOL)cm_checkPassword;
- (BOOL)cm_checkPayPassword;
#pragma 正则匹配用户姓名,20位的中文或英文
- (BOOL)cm_checkUserName;
@end
